package br.com.dispositivosmoveis.acompanhamentodeconta.abstracts;

import br.com.dispositivosmoveis.acompanhamentodeconta.database.DataBaseHelper;
import android.database.sqlite.SQLiteDatabase;

public abstract class  CrudRepository<E> implements AbstractRepository<E>  {
	private SQLiteDatabase sqLiteDatabase;

	protected SQLiteDatabase getWritableDatabase() {
		sqLiteDatabase = DataBaseHelper.getInstanceDBHelper().getWritableDatabase();
		return sqLiteDatabase;
	}
	
	protected SQLiteDatabase getReadableDatabase() {
		sqLiteDatabase = DataBaseHelper.getInstanceDBHelper().getReadableDatabase();
		return sqLiteDatabase;
	}

}
